package com.sg.dto.biz.component.common;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;


/**
 * @desc BizSceneConfSchemeDto
 * @使用场景
 */
@Data
public class BizSceneConfSchemeDto extends BaseDto implements Serializable {

    /**
     * 答案值
     */
    @ApiModelProperty("答案值")
    private String endValue;

    /**
     * 选项标识
     */
    @ApiModelProperty("选项标识")
    private String confOptionCode;

    /**
     * 配置方案ID
     */
    @ApiModelProperty("配置方案ID ")
    private String confSchemeId;

    /**
     * 配置方案标识
     */
    @ApiModelProperty("配置方案标识")
    private String confSchemeCode;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BizSceneConfSchemeDto that = (BizSceneConfSchemeDto) o;
        return endValue == that.endValue && confOptionCode == that.confOptionCode && confSchemeId == that.confSchemeId && confSchemeCode == that.confSchemeCode;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), endValue, confOptionCode, confSchemeId, confSchemeCode);
    }


}
   